﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:Controls="clr-namespace:Microsoft.Surface.Presentation.Controls;assembly=Microsoft.Surface.Presentation"
    xmlns:CustomControl1="clr-namespace:ScrumTable.UI.View.CustomControl;assembly=ScrumTable.UI.View" 
    xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" xmlns:UserControl="clr-namespace:ScrumTable.UI.View.Controls;assembly=ScrumTable.UI.View" x:Class="ScrumTable.UI.View.WinTouch.UserControls.SaveScreen"	x:Name="UserControl" HorizontalAlignment="Center" VerticalAlignment="Center">    
    
	<Grid>
        <Grid.RowDefinitions>            
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>



        <Border Grid.Row="1" BorderThickness="2" CornerRadius="10" BorderBrush="Black" Background="White" Opacity="0.9" Margin="0,0,0,0" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>

                <Grid Height="150" Width="150" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10,30,10,10" Opacity="0.5">
                    <UserControl:WaitControl x:Name="WaitImage"></UserControl:WaitControl>
                </Grid>

                <Label Height="30" Margin="10,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontWeight="Bold">
                    <Label.Content>
                        <Localization:Translate Uid="Save_Saving" Default="[Saving data...]" />
                    </Label.Content>
                </Label>
                <Grid Margin="20,30,20,10" Name="Menu" Visibility="Hidden" >
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Label Name="SaveText" Grid.Row="0">
                        <Label.Content>
                            <Localization:Translate Uid="Save_FaileText" Default="[Save Changes?]" />
                        </Label.Content>
                    </Label>
                    <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,10,0,10">
                        <Controls:SurfaceButton Width="150" Margin="20,0,20,0" Click="OnReTry">
                            <Controls:SurfaceButton.Content>
                                <Localization:Translate Uid="Save_ReTry" Default="[Yes]" />
                            </Controls:SurfaceButton.Content>
                        </Controls:SurfaceButton>
                        <Controls:SurfaceButton x:Name="ButtonQuit" Width="150" Margin="20,0,20,0" Click="OnQuit">
                            <Controls:SurfaceButton.Content>
                                <Localization:Translate Uid="Save_Quit" Default="[Quit]" />
                            </Controls:SurfaceButton.Content>
                        </Controls:SurfaceButton>
                        <Controls:SurfaceButton Width="150" Margin="20,0,20,0" Click="OnCancel">
                            <Controls:SurfaceButton.Content>
                                <Localization:Translate Uid="Save_Cancel" Default="[Cancel]" />
                            </Controls:SurfaceButton.Content>
                        </Controls:SurfaceButton>
                    </StackPanel>
                </Grid>
            </Grid>
        </Border>
    </Grid>
</UserControl>